<script>
	import Vue from 'vue'
	export default {
		created() {
			// #ifdef APP-PLUS
			plus.navigator.closeSplashscreen(); 
			// #endif 
		},
		onLaunch: function() {
			
			console.log('App Launch')
			uni.getSystemInfo({
				success: function(e) {
					// #ifndef MP
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
					// #endif
		
					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
					// #endif		
		
					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight;
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
					// #endif
				}
			})
		},
		onShow: function() {
			console.log('App 开启')
		},
		onHide: function() {
			console.log('App 关闭')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import '@/tailwind.scss';
	
	uni-button{
		margin: 0;
		line-height: 1;
		background-color: transparent;
	}
	
	uni-button[type=default]{
		color: #FFFFFF;
		background: #047857;
	}
	uni-button:after{
		display: none;
	}
	.border-l2-green{
		border-left: 4px solid #047857;
		border-bottom: 2px solid #047857;
	}
	
	
	
	
	/* 引入主题样式 */
	@import 'common/css/theme.css'; // 默认主题
	@import 'common/css/theme-dark.scss'; // 暗黑主题
	
	/* #ifndef APP-NVUE */
	@import 'common/css/main.css';
	
	/* 引入remixicon图标库 */
	@import 'libs/remixicon.css';
	
	/* 引入uView基础样式 */
	@import "libs/uview-ui/index.scss";
	
	/*每个页面公共css */
	// * {
	// 	line-height: 1;
	// }
	body{
		background: #FFFFFF !important;
	}
	page {
		background-color: #EDEDED;
	}
	
	uni-page-body {
		font-size: initial;
	}
	
	uni-view,
	uni-text {
		box-sizing: initial;
	}
	/* #endif */
</style>
